package cn.flying.cloud.task.core.quartz.enums;

import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * 任务执行状态
 *
 * @author: admin
 * @date: 2024年01月15日 15:55
 * @version: 1.0
 */
public enum JobExecuteStatusEnum implements BaseEnumInfo {
    RUNNING("RUNNING", "正在执行"),
    SUCCESS("SUCCESS", "执行成功"),
    FAIL("FAIL", "执行失败");

    private final String code;
    private final String text;

    JobExecuteStatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.text;
    }
}
